package com.deep.deepenterpise.common.enums;

import lombok.Getter;

/**
 * @author xyz
 * @version 1.0
 * @title DrPayStateEnum
 * @description
 * @create 2024/5/20 16:18
 */
@Getter
public enum DrPayStateEnum {
    NO_PAID(0),
    PAID(1),
    REFUNDED(2),
    SUCCESS(3),
    CLOSED(4),
    PENDING(5),
    PARTIAL_REFUND(6),
    PROBLEM(7),
    UN_DISPATCHED(8),
    ARREARS(9)
    ;

    private final Integer drState;

    DrPayStateEnum(Integer drState) {
        this.drState = drState;
    }


    public boolean compare(Integer drState) {
        return this.drState.equals(drState);
    }

    public boolean compare(DrPayStateEnum drStateEnum) {
        return this.compare(drStateEnum.getDrState());
    }
}
